package org.openmore.consumer.dto.common;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;


@ApiModel("Role显示模型")
public class RoleDto {
    @ApiModelProperty(value = "角色id")
    public String id;
    @ApiModelProperty(value = "角色识别码")
    public String code;
    @ApiModelProperty(value = "角色名")
    public String name;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    public Date createdTime;
    @ApiModelProperty(value = "所属社区")
    public String communityFullName;

    @ApiModelProperty(value = "是否配置过权限")
    public Boolean hasPermission;

    public String getCommunityFullName() {
        return communityFullName;
    }

    public void setCommunityFullName(String communityFullName) {
        this.communityFullName = communityFullName;
    }

    public Boolean getHasPermission() {
        return hasPermission;
    }

    public void setHasPermission(Boolean hasPermission) {
        this.hasPermission = hasPermission;
    }

    public void setId(String id){
        this.id = id;
    }

    public String getId(){
        return this.id;
    }
    public void setCode(String code){
        this.code = code;
    }

    public String getCode(){
        return this.code;
    }
    public void setName(String name){
        this.name = name;
    }

    public String getName(){
        return this.name;
    }
    public void setCreatedTime(Date createdTime){
        this.createdTime = createdTime;
    }

    public Date getCreatedTime(){
        return this.createdTime;
    }
}